<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	SoptHashMap hm = RequestManager.getRequest(request);
	BoardProc board = new BoardProc();
	hm = board.getBoard(CommUtil.NVL(hm.get("BOARD_SEQ"),""));
%>    

<%@page import="comm.util.SoptHashMap"%>
<%@page import="comm.util.RequestManager"%>
<%@page import="comm.util.CommUtil"%>
<%@page import="styledaco.board.CategoryProc"%>
<%@page import="styledaco.board.BoardProc"%>
<%@page import="statics.SoptVars"%>
<script type="text/javascript" src="http://<%=request.getServerName()+request.getContextPath()%>/editor/js/HuskyEZCreator.js"></script>
<script>
var oEditors = [];
nhn.husky.EZCreator.createInIFrame({
	oAppRef: oEditors,
	elPlaceHolder: "board_content",
	sSkinURI: "editor/SEditorSkin.html",
	fCreator: "createSEditorInIFrame"
});
</script>
<div>    
	<h2>게시판 글 수정  - <%=hm.get("CATEGORY_NAME") %></h2>
	
	<%if(hm.get("CATEGORY_SEQ").toString().equals(SoptVars.MENU_STYLE)){ %>
		<%@include file="imgUploadForm.jsp" %>
	<%} %>
	
	<form action="jsp/commons/writeProc.jsp" method="post" target="ifr" onsubmit="return checkWriteForm();">
		<input type="hidden" name="actionType" value="updateBoard">
		<input type="hidden" name="board_seq" value="<%=hm.get("BOARD_SEQ") %>">
		<input type="hidden" name="curMenu" value="<%=hm.get("CATEGORY_TYPE_NAME") %>">
		<input type="hidden" name="category_seq" id="write_category_seq" value="<%=hm.get("CATEGORY_SEQ") %>">
		글제목:<input type="text" name="board_title" id="write_board_title" value="<%=hm.get("BOARD_TITLE") %>"><br>
		글 내용:<textarea name="board_content" id="board_content"><%=hm.get("BOARD_CONTENT") %></textarea>
		<br>
		<input type="submit" value="저장" id="boardWriteBtn">
	</form>
</div>